class Container:
	def __init__(self):
		self.items=list()
	def render_contained(self, renderer):		
		for item in self.items:
			item.render(renderer)
class Tag:
	def __init__(self):
		self.tag=""
		self.attributes = dict()

	def render_tag(self,renderer):
		renderer.write("<%s" % self.tag)
		self.render_attributes(renderer)
		renderer.write(">")

	def render_attributes(self,renderer):
		for key, val in self.attributes:
			renderer.write('%s="%s"' % (key,val))

	def render_close(self,renderer):
		renderer.write("</%s>"%self.tag)

class FormField:
	def __init__(self):
		self.id=""
	
class Renderable:
	def __init__(self): pass

	def render(renderer):
		renderer.write("")

